package org.ecshop.common.domain.userdto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class RegistDto {
	
	// 注册来源IP
	private String sourceIp;
	
	// 昵称
	@NotNull(message = "昵称不能为空")
	private String userName;
	
	// 密码
	@NotNull(message = "密码不能为空")
	private String pwd;
	
	// 手机号
	@Pattern(regexp = "^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$", message = "手机号格式不正确")
	private String mobile;
	
	// 注册来源
	private String source;
	
	// 验证码
	@NotNull(message = "验证码不能为空")
	private String verify;
	
	//确认密码
	@NotNull
	private String secpwd;

}
